package com.college.services;

import java.util.ArrayList;
import java.util.List;

import org.springframework.stereotype.Service;
import com.college.domain.Student;
import com.college.domain.StudentDTO;
import com.college.domain.StudentForm;
import com.college.interfaces.IStudentService;
@Service
public class StudentServiceImpl implements IStudentService{

	public static int rowCount	= 3;
	
	public List<StudentDTO> getStudentAttributesList(){
		//rowCount = rowCount+3;
		List<StudentDTO> studentList = new ArrayList<StudentDTO>();
		StudentDTO stud = new StudentDTO();
		for(int i=0; i<3; i++){
			studentList.add(stud);
		}
		
		return studentList;

	}
	
	public List<StudentDTO> addRows(){
		
		List<StudentDTO> studentList = new ArrayList<StudentDTO>();
		rowCount = rowCount+3;
		StudentDTO stud = new StudentDTO();
		for(int i=0; i<rowCount; i++){
			studentList.add(stud);
		}
		return studentList;
	}
}
